package com.lintf.starter.initializer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author lin tingfeng
 * @ system Mac
 * @ data 2025/6/10 17:14
 * @ package_name com.lintf.starter
 * @ project_name my-diy-project
 * @ desc
 */
@Slf4j
@Component
public class SystemStartupListener {

    @EventListener
    public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) {
        // 这里可以添加一些启动时需要执行的逻辑
        log.info("监听通知：应用程序已启动");
        log.info("监听通知：执行自定义初始化逻辑...");
        // 例如，加载配置、初始化资源等
    }

}
